#!/bin/bash
str1="ont add 0 1 value"
if [[ $str1 =~ "ont\\s+add\\s+\\d+\\d+\\d+.*" ]]
	then echo "true"
else
	echo "false"
fi